messages

overview
Messages and message processing functions are often closely related. For example, #GetBorder and #SetBorder are messages programs send to grids to get and set their border, borderUp , borderDown properties, and XuiGetBorder() and XuiSetBorder() are the standard message processing functions provided to process these messages.

Programs call XuiSendMessage() to send messages to grids, as in:

XuiSendMessage (grid, #SetBorder, $$BorderRaise2, -1, -1, 0, kid, 0)

Grid functions can control themselves and their kids in the same way. But grid functions can also call message processing functions directly to control their own properties and behavior. A grid function might call XuiSetBorder() directly to control its own border. For example, the MouseDown message processing subroutine in XuiPushButton calls XuiGetBorder() and XuiSetBorder() directly to set the border property equal to the borderDown property, something like the following:

...
XuiGetBorder (grid, #GetBorder, @border, @up, @down, 0, 0, 0)
XuiSetBorder (grid, #SetBorder, down, up, down, 0, 0, 0)
...

GraphicsDesigner and GuiDesigner messages - details

Callback  ( grid, message, v0, v1, v2, v3, @r0, r1 ) 

Grid functions call XuiCallback() directly to send a callback message. If a callback function exists for the grid , XuiCallback() calls the callback function and passes it the arguments, except that the original message argument is transferred to r1 and replaced by #Callback . XuiCallback() passes r0 reference so callback functions potentially can cancel operations by returning -1 in r0 . 

XuiCallback ( grid, message, v0, v1, v2, v3, @r0, r1 ) 

grid - grid sending callback message 
message - message: callback message 
v0,v1,v2,v3,r1 - original callback arguments 
r0 - callback argument and possible cancel indicator

Create 
SUB Create 
( @grid, #Create, x, y, width, height, window, parent ) 

Call a grid function directly with a Create message to create one grid of its grid type. Grid functions return the grid number of the created grid, or 0 if the grid could not be created for some reason. Create messages must be processed in message processing subroutines within grid functions, so there are no standard message functions to handle Create messages. 

Programs can call XuiSendMessage() to send all other messages, but must call grid functions directly to send Create and CreateWindow : 

wrong: XuiSendMessage ( @grid, #Create, x, y, w, y, window, parent ) 
right: XuiTextLine ( @grid, #Create, x, y, w, h, window, parent ) 

GridFunc (@grid, #Create, x, y, width, height, window, parent ) 

grid - grid number of grid created by grid function 
#Create - message: create a grid 
x, y - x,y coordinates of upper-left corner in parent 
width, height - width,height size of grid in pixels 
window - window number of window the grid is put in 
parent - parent grid of the created grid ( enclosing grid )

CreateWindow 
SUB CreateWindow 
( @grid, #CreateWindow, xDisp, yDisp, width, height, winType, display$ ) 

Call a grid function directly with a CreateWindow message to create one grid of their grid type in a window just big enough to contain the grid. Grid functions return the grid number of the created grid and window, or 0 if they could not be created for some reason. CreateWindow messages must be processed in message processing subroutines within grid functions, so no standard message functions are provided for CreateWindow . 

Programs can call XuiSendMessage() to send all other messages, but must call grid functions directly to send Create and CreateWindow : 

wrong: XuiSendMessage ( @grid, #CreateWindow, x, y, w, y, wt, 0 ) 
right: XuiDialog3B ( @grid, #CreateWindow, x, y, w, h, wt, 0 ) 

GridFunc ( @grid, #CreateWindow, xDisp, yDisp, width, height, winType, disp$ ) 

grid - grid number of grid created by grid function 
#CreateWindow - message: create a window and grid 
xDisp, yDisp - x,y display coordinates of upper-left corner of grid 
width, height - width,height size of grid in pixels 
winType - window type to create and parent window 
disp$ - display name to contain window 

winType - window type bits OR parent window 
- window type bits are in high 16-bits 
- parent window is in low 16-bits 
- parent window is usually 0 except menu pulldown lists 

winType constant - meaning ( in xgr.DEC file : IMPORT "xgr" ) 
$$WindowTopMost - stays above other windows 
$$WindowNoSelect - window is not selected by mouse button events 
$$WindowNoFrame - window has no resize frame 
$$WindowResizeFrame - window has a resize frame 
$$WindowTitleBar - window has a title bar 
$$WindowSystemMenu - window has a system menu button 
$$WindowMinimizeBox - window has a minimize button 
$$WindowMaximizeBox - window has a maximize button

Destroy  ( grid, #Destroy, 0, 0, 0, 0, kid, 0 ) 

Send Destroy to a grid to destroy it. If the grid is attached to a window, that is, it was created by CreateWindow , the window containing the grid is also destroyed and removed from the display. 

Do not send messages to grids after they are destroyed. Their grid numbers are reassigned to subsequently created grids, and the messages are erroneously sent to the new grids. 

XuiSendMessage ( grid, #Destroy, 0, 0, 0, 0, kid, 0 ) 
XuiDestroy ( grid, #Destroy, 0, 0, 0, 0, 0, 0 ) 

grid,kid - target grid 
#Destroy - message: destroy grids

Destroyed  ( grid, #Destroyed, 0, 0, 0, 0, kid, 0 ) 

When a user destroys a window manually, a WindowDestroyed message is sent to the window function assigned to the destroyed window. The window function sends a Destroyed message to every parentless grid in the destroyed window. Grids propogate Destroyed messages to their kids. 

XuiSendMessage ( grid, #Destroyed, 0, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#Destroyed - message: notify grids they've been destroyed

DestroyWindow   ( grid, #DestroyWindow, 0, 0, 0, 0, kid, 0 ) 

Send DestroyWindow to any grid in a window to destroy the window and all kids in the window. 

XuiSendMessage ( grid, #DestroyWindow, 0, 0, 0, 0, kid, 0 ) 

grid,kid - target grid (any grid in the window) 
#DestroyWindow - message: destroy the window containing the grid

Disable    ( grid, #Disable, 0, 0, 0, 0, kid, 0 ) 

Send Disable to a grid to have GraphicsDesigner stop sending keyboard and mouse messages to the grid. Grids propogate Disable messages to their kids. 

XuiSendMessage ( grid, #Disable, 0, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#Disable - message: disable grid

DisplayWindow   ( grid, #DisplayWindow, 0, 0, 0, 0, kid, 0 ) 

Send DisplayWindow to any grid in a window to display the window. 

XuiSendMessage ( grid, #DisplayWindow, 0, 0, 0, 0, kid, 0 ) 

grid,kid - target grid (any grid in the window) 
#DisplayWindow - message: display the window containing the grid

Enable  ( grid, #Enable, 0, 0, 0, 0, kid, 0 ) 

Send Enable to a grid to have GraphicsDesigner resume sending keyboard and mouse messages to the grid. Grids propogate Enable messages to their kids. 

XuiSendMessage ( grid, #Enable, 0, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#Enable - message: enable grids

GetBorder  ( grid, #GetBorder, @border, @borderUp, @borderDown, 0, kid, @width ) 

Send GetBorder to a grid to get its current border style, two alternate border styles, and border width of the current border style. 

XuiSendMessage ( grid, GetBorder, @border, @borderUp, @borderDown, 0, kid, @width ) 

grid,kid - target grid 
#GetBorder - message: get grid border styles, etc... 
border - the current border style 
borderUp - alternate border style 
borderDown - alternate border style 
width - width of current border style

GetCallback  ( grid, #GetCallback, @callGrid, @callFunc, @v2, @v3, @r0, 0 ) 

Send GetCallback to a grid to get its callback information, which includes a callback grid, a callback function address, and callback indicies. 

XuiSendMessage ( grid, #GetCallback, @callGrid, @callFunc, @v2, @v3, @r0, 0 ) 

grid - target grid 
#GetCallback - message: get the callback grid/function/indices 
callGrid - grid argument in callback message 
callFunc - address of function callback messages are sent to 
v2,v3,r0 - values sent back with callback messages ( if not -1 )

GetCallbackArgs  ( @g, #GetCallbackArgs, @v0, @v1, @v2, @v3, @r0, @r1 ) 

Call XuiCallback() directly with a GetCallbackArgs message to retreive the most recently sent callback arguments, some of which may have been replaced with values registered when the callback function was set. 

When a callback function is set, values can be registered to be sent in v2,v3,r0,r1 whenever the grid sends a callback message. When the grid calls XuiCallback() to send a callback message, any of the v2,v3,r0,r1 arguments that was not -1 in the SetCallback call is sent with the registered callback value. 

Calling XuiCallback() with a GetCallbackArgs message retreives the original v2,v3,r0,r1 the grid sent. 

XuiCallback ( @g, #GetCallbackArgs, @v0, @v1, @v2, @v3, @r0, @r1 ) 

#GetCallbackArgs - message: get original callback arguments 
g,v0,v1,v2,v3,r0,r1 - original callback arguments sent by grid

GetColor    ( grid, #GetColor, @back, @draw, @low, @high, kid, 0 ) 

Send GetColor to a grid to get its background, drawing, highlight, and lowlight colors. 

XuiSendMessage ( grid, #GetColor, @back, @draw, @low, @high, kid, 0 ) 

grid,kid - target grid 
#GetColor - message: get main grid colors 
back - background color 
draw - drawing color 
low - lowlight color ( 3D down slope color ) 
high - highlight color ( 3D up slope color )

GetColorExtra  ( grid, #GetColorExtra, @dull, @accent, @loText, @hiText, kid, 0 ) 

Send GetColorExtra to a grid to get its dull, accent, lowtext, and hightext colors. 

XuiSendMessage ( grid, #GetColorExtra, @dull, @acc, @lt, @ht, kid, 0 ) 

grid,kid - target grid 
#GetColorExtra - message: get auxiliary grid colors 
dull - dull color ( disabled features, etc... ) 
accent - accent color ( selected text, etc... ) 
loText - lowText color ( for 3D text texture ) 
hiText - accent color ( for 3D text texture )

GetCursor  ( grid, #GetCursor, @cursor, 0, 0, 0, kid, 0 ) 

Send GetCursor to a grid to get the cursor number of the cursor that displays when the mouse cursor enters grid. 

grid,kid - target grid 
#GetCursor - message: get cursor number ( 0 = default cursor ) 
cursor - cursor number

GetDisplay  ( grid, #GetDisplay, 0, 0, 0, 0, kid, @display$ ) 

Send GetDisplay to any grid in any window in a display to get the name of the display. The default display is an empty string "" . 

XuiSendMessage ( grid, #GetDisplay, 0, 0, 0, 0, kid, @display$ ) 

grid,kid - target grid 
#GetDisplay - message: get display containing grid,kid 
display$ - name of display

GetEnclosedGrids  ( grid, #GetEnclosedGrids, 0, 0, 0, kid, @grid[] ) 

Send GetEnclosedGrids to a grid to get an array containing the grid numbers of all grids whose grid-boxes are completely contained within the grid. Coincident boundaries are considered enclosed. Some part of a grid must fall outside to be classified as not enclosed. 

grid,kid - target grid 
#GetEnclosedGrids - message: get array of enclosed grid numbers 
grid[] - array of enclosed grid numbers (empty if none)

GetEnclosingGrid  ( grid, #GetEnclosingGrid, @enclosingGrid, 0, 0, 0, kid, 0 ) 

Send GetEnclosingGrid to a grid to get the grid number of the smallest grid that completely encloses the grid. Coincident boundaries are considered enclosed. In other words, if no part of a grid extends outside another, it is enclosed by that enclosing grid. 

grid,kid - target grid 
#GetEnclosingGrid - message: get smallest enclosing grid number 
enclosingGrid - grid number of smallest enclosing grid

GetFont    ( grid, #GetFont, @size, @weight, @italic, @angle, kid, @font$ ) 

Send GetFont to a grid to get its font name and characteristics. 

XgrCreateFont() assigns a unique font number for each combination of typeface, size, weight, italic, and angle. 

grid,kid - target grid 
#GetFont - message: get font assigned to grid 
size - font size in 1/20 point units 
weight - font boldness from 0 to 1000 - 400 is normal 
italic - font italic tilt from 0 to 1000 - 0 is no italic 
angle - font baseline tilt in .1 degree units

GetFont  Number  ( grid, #GetFontNumber, @font, 0, 0, 0, kid, 0 ) 

Send GetFontNumber to a grid to get its font number. 

XgrCreateFont() assigns a unique font number for each combination of typeface, size, weight, italic, and angle. 

grid,kid - target grid 
#GetFontNumber - message: get font number assigned to grid 
font - font number

GetGridFunction  ( grid, #GetGridFunction, @func, 0, 0, 0, kid, 0 ) 

Send GetGridFunction to a grid to get the addres of its grid function. 

XuiSendMessage ( grid, #GetGridFunction, @g, @func, 0, 0, kid, 0 ) 

grid,kid - target grid 
#GetGridFunction - message: get grid number and grid function 
func - address of grid function assigned to target grid

GetGridFunctionName  ( grid, #GetGridFunctionName, @func, 0, 0, 0, kid, func$ ) 

Send GetGridFunctionName to a grid to get the name of its grid function. The address of the grid function is also available. 

XuiSendMessage ( grid, #GetGridFunction, @func, 0, 0, 0, kid, func$ ) 

grid,kid - target grid 
#GetGridFunctionName - message: get grid function name 
func - address of grid function assigned to grid 
func$ - name of grid function assigned to grid

GetGridName  ( grid, #GetGridName, @gridNumber, 0, 0, 0, kid, @gridName$ ) 

Send GetGridName to a grid to get its grid name. Default grid names are assigned to grids when they are created, and you should assign descriptive grid names during the design process. 

XuiSendMessage ( grid, #GetGridName, @gridNumber, 0, 0, 0, kid, @gridName$ ) 

grid,kid - target grid 
#GetGridName - message: get grid name 
gridNumber - grid number of grid,kid 
gridName$ - grid name of grid,kid

GetGridNumber  ( grid, #GetGridNumber, @g, @kid1, @kid2, @kid3, kid, @parent ) 

Send GetGridNumber to a grid to get its grid number. The grid numbers of its first three kids and its parent are also returned. 

XuiSendMessage ( grid, #GetGridNumber, @g, @kid1, @kid2, @kid3, kid, @parent ) 

grid,kid - target grid 
#GetGridNumber - message to get grid number of a grid 
g - grid number of grid,kid 
kid1,kid2,kid3 - grid number of kid #1, kid #2, kid #3 of grid,kid 
parent - grid number of parent of grid,kid

GetGridType  ( grid, #GetGridType, @gridType, 0, 0, 0, kid, 0 ) 

Send GetGridType to a grid to get its grid type. 

XuiSendMessage ( grid, #GetGridType, @gridType, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#GetGridType - message: get grid type 
gridType - grid type of grid

GetGridTypeName  ( grid, #GetGridTypeName, @gridType, 0, 0, 0, kid, gridType$ ) 

Send GetGridTypeName to a grid to get the name of its grid function. The gridType number is also available. 

XuiSendMessage ( grid, #GetGridTypeName, @func, 0, 0, 0, kid, func$ ) 

grid,kid - target grid 
#GetGridTypeName - message: get grid type name 
gridType - grid type number 
gridType$ - grid type name

GetHelp  ( grid, #GetHelp, x, y, state, time, @kid, @help$ ) 

GetHelp is sent to a grid by the InstantHelp window when the user presses the right mouse button over the grid. GetHelp can also be send to a grid to achieve the same effect. The InstantHelp window sends the x,y,state,time arguments from the mouse event, so programs can send all zeros to distinguish itself from mouse events. 

XuiGetHelp() , the standard message processing function for the GetHelp message, does the following: 

Sends a Help callback message on behalf of the grid. 
The callback function can display customized help by sending SetHelp to XuiHelp(). 
The callback function can return r0=-1 to cancel the normal help request response. 
If XuiGetHelp() detects r0=-1, it returns this cancel notice and an empty help string. 
If the help string for the grid is not empty, XuiGetHelp() returns the help string in help$. 
If the help string is empty, XuiGetHelp() returns (":" + gridName$) in help$. 

grid,kid - target grid 
#GetHelp - message: get help string to display 
x,y - mouse coordinates if initiated by MouseDown 
state,time - mouse information if initiated by MouseDown 
@kid - return as -1 to cancel the help response 
help$ - the help string (file:entry, :entry, help$, or "")

GetHelpFile  ( grid, #GetHelpFile, 0, 0, 0, 0, kid, @helpfile$ ) 

grid,kid - target grid (any valid grid) 
#GetHelpFile - message: get current default help file 
helpFile$ - help file name

GetHelpString   ( grid, #GetHelpString, 0, 0, 0, 0, kid, @help$ ) 

Send GetHelpString to a grid to get its current help string. This can be an empty string, "filename:entryname", ":entryname", or the help text itself. Also see the GetHelp message. 

XuiSendMessage ( grid, #GetHelpString, 0, 0, 0, 0, kid, @help$ ) 

grid,kid - target grid 
#GetHelpString - message: get help string from grid 
help$ - help string from grid

GetHelpStrings  ( grid, #GetHelpStrings, 0, 0, 0, 0, kid, @help$[] ) 

Send GetHelpStrings to a grid to get its help string and the help strings from all its kids. Each help string can be an empty string, "filename:entryname", ":entryname", or the help text itself. 

XuiSendMessage ( grid, #GetHelpStrings, 0, 0, 0, 0, kid, @help$[] ) 

grid,kid - target grid 
#GetHelpStrings - message: get help string from grid and its kids 
help$[] - help string from grid and its kids

GetImage  ( grid, #GetImage, @image, 0, @indentX, @indentY, kid, 0 ) 

Send GetImage to a grid to get the grid number of the image grid assigned to the grid, as well as the indent from the left and top of the grid that the image should be drawn. Not all grids display images. 

XuiSendMessage ( grid, #GetImage, @image, 0, @indentX, @indentY, kid, 0 ) 

grid,kid - target grid 
#GetImage - message: get grid number of image 
indentX - indent from left of grid to left of image 
indentY - indent from top of grid to top of image

GetImageCoords  ( grid, #GetImageCoords, @offsetX, @offsetY, @width, @height, kid, 0 ) 

Send GetImageCoords to a grid to get the coordinates of the portion of the image grid that are to drawn into the grid. These are 0,0 relative coordinates in the image, so they determine what portion of the image is drawn in the grid, not where the image is drawn in the grid. See indentX,indentY in GetImage . 

XuiSendMessage ( grid, #GetImageCoords, @offsetX, @offsetY, @width, @height, kid, 0 ) 

grid,kid - target grid 
#GetImageCoords - message: get coordinate of portion of image to draw 
offsetX - offset from image left to left of portion to draw 
offsetY - offset from image top to top of portion to draw 
width - width of portion of image to draw 
height - height of portion of image to draw

GetJustify  ( grid, #GetJustify, @justify, @align, @inL, @inT, kid, bw ) 

Send GetJustify to a grid to get its text justify, align, indentLeft, indentTop properties, and its border width. 

XuiSendMessage ( grid, #GetJustify, @justify, @align, @inL, @inT, kid, @bw ) 

grid,kid - target grid 
#GetJustify - message: get justify, align, indent, border width 
justify - text justify property 
align - text align property 
inL,inT - text indentLeft,indentTop property 
bw - width of the border style

GetKeyboardFocus  ( grid, #GetKeyboardFocus, @focusGrid, 0, 0, 0, kid, 0 ) 

Send GetKeyboardFocus to any grid to get the grid that currently has keyboard focus. The grid with keyboard focus may not be in the same window. 

XuiSendMessage ( grid, #GetKeyboardFocus, @focusGrid, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#GetKeyboardFocus - message: get current keyboard focus grid number 
focusGrid - grid number of grid that has keyboard focus

GetKeyboardFocusGrid  ( grid, #GetKeyboardFocusGrid, @focusGrid, 0, 0, 0, kid, 0 ) 

Send GetKeyboardFocusGrid to any grid in a window to get the grid number of the grid that will get keyboard focus the next time the window is selected. If the window is currently selected, focusGrid currently has keyboard focus. 

XuiSendMessage ( grid, #GetKeyboardFocusGrid, @focusGrid, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#GetKeyboardFocusGrid - message: get keyboard focus grid in window 
focusGrid - grid that will get keyboard focus in window

GetKidArray  ( grid, #GetKidArray, 0, 0, 0, 0, kid, @kid[] ) 

Send GetKidArray to a grid to get an array containing the grid numbers of the grid kids. kid[0] is the grid number of the grid. 

XuiSendMessage ( grid, GetKidArray, 0, 0, 0, 0, kid, @kid[] ) 

grid,kid - target grid 
#GetKidArray - message: get array of kid grid numbers 
kid[] - grid numbers of grid,kid and its kids

GetKids  ( grid, #GetKids, @g, @k1, @k2, @k3, kid, @k4 ) 

Send GetKids to a grid to get an array containing the grid number of the grid and its kids. g is the grid number of the target grid. 

XuiSendMessage ( grid, GetKids, @g, @k1, @k2, @k3, kid, @k4 ) 

grid,kid - target grid 
#GetKids - message: get array of kid grid numbers 
g - grid number of grid,kid 
k1,k2,k3,k4 - grid numbers of 1st 4 kids of grid,kid

GetMaxMinSize  ( grid, #GetMaxMinSize, @maxW, @maxH, @minW, @minH, kid, 0 ) 

Send GetMaxMinSize to a grid to get is maximum and minimum width,height under any circumstances. See GetSmallestSize . 

XuiSendMessage ( grid, #GetMaxMinSize, @maxW, @maxH, @minW, @minH, kid, 0 ) 

grid,kid - target grid 
#GetMaxMinSize - message: get max/min width/height of grid,kid 
maxW,maxH - maximum possible width and height of grid,kid 
minW,minH - minimum possible width and height of grid,kid

GetMessageFunc  ( grid, #GetMessageFunc, message, @func, 0, 0, kid, 0 ) 

Send GetMessageFunc to a grid to get the address of the function that handles message number message . 

XuiSendMessage ( grid, #GetMessageFunc, message, @func, 0, 0, kid, 0 ) 

grid,kid - target grid 
#GetMessageFunc - message: get message function address for a message 
message - message number to get function address for 
func - address of function executed in response to msg

GetMessageFuncArray    ( grid, #GetMessageFuncArray, 0, 0, 0, 0, kid, @func[] ) 

Send GetMessageFuncArray to a grid to get the addresses of the functions that process messages for the grid. 

XuiSendMessage ( grid, #GetMessageFuncArry, 0,0,0,0, kid, @func[] ) 

grid,kid - target grid 
#GetMessageFuncArray - message: get message function addresses 
func[] - message function addresses

GetMessageSub  ( grid, #GetMessageSub, message, @sub, 0, 0, kid, 0 ) 

grid,kid - target grid 
#GetMessageSub - message: get message subroutine address 
message - message to get subroutine address for 
sub - subroutine address

GetMessageSubArray  ( grid, #GetMessageSubArray, 0, 0, 0, 0, kid, @sub[] ) 

grid,kid - target grid 
#GetMessageSubArray - message: get array of message subroutines 
sub[] - array of message subroutine addresses

GetModalInfo  ( grid, #GetModalInfo, @v0, @v1, @v2, @v3, kid, @r1 ) 

grid,kid - target grid 
#GetModalInfo - message: display modal window, accept response 
v0,v1,v2,v3,r1 - arguments returned by response callback

GetParent  ( grid, #GetParent, @parent, 0, 0, 0, kid, 0 ) 

Send GetParent to a grid to get its grid number and the grid number of its parent grid. 

XuiSendMessage ( grid, #GetParent, @parent, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#GetParent - message to get grid number of parent grid 
parent - grid number of parent of grid,kid

GetSize  ( grid, #GetSize, @x, @y, @width, @height, kid, 0 ) 

Send GetSize to a grid to get the position of its upper-left corner in window coordinates, and its size in pixels. 

XuiSendMessage ( grid, #GetSize, @x, @y, @width, @height, kid, 0 ) 

grid,kid - target grid 
#GetSize - message: get grid position in window and width,height 
x,y - upper-left corner of grid,kid in parent 
width,height - width and height of grid,kid in pixels

GetSmallestSize  ( grid, #GetSmallestSize, 0, 0, @width, @height, kid, 0 ) 

Send GetSmallestSize to a grid to get the smallest size it can be resized to and still reasonably contain its contents. Not every grid type supports this message, so routines should be prepared to have the width,height arguments returned unchanged, or possibly with the current grid size returned by GetSize , or possibly filled with the grid minimums returned by GetMaxMinSize . 

XuiSendMessage ( grid, #GetSmallestSize, 0, 0, @width, @height, kid, 0 ) 

grid,kid - target grid 
#GetSmallestSize - message: get smallest size that fits contents 
width,height - smallest width and height

GetState    ( grid, #GetState, @state, @keyboard, @mouse, @redraw, kid, 0 ) 

Send GetState to a grid to get its master disabled/enabled state, as well as disabled/enabled states for keyboard messages, mouse messages, and redraw messages. 

See the Disable and Enable messages for related information. 

XuiSendMessage ( grid, #GetState, @state, @keyboard, @mouse, @redraw, kid, 0 ) 

grid,kid - target grid 
#GetState - message: get disable/enable state ( FALSE / TRUE ) 
state - FALSE/TRUE = disabled/enabled ( everything ) 
keyboard - FALSE/TRUE = disabled/enabled keyboard 
mouse - FALSE/TRUE = disabled/enabled mouse 
redraw - FALSE/TRUE = disabled/enabled redraw

GetStateFlags  ( grid, #GetStateFlags, @state, @key, @mouse, @redraw, kid, @enable ) 

grid,kid - target grid 
#GetStateFlags - message: get state flags 
state - overall keyboard/mouse/redraw disable/enable 
key - keyboard disable/enable 
mouse - mouse disable/enable 
redraw - redraw disable/enable 
enable - GraphicsDesigner master disable/enable state 
- #Disable/#Enable messages & XuiDisable()/XuiEnable()

GetStyle  ( grid, #GetStyle, @style, styleMax, 0, 0, kid, 0 ) 

grid,kid - target grid 
#GetStyle - message: get style property 
style - style property 
maxStyle - maximum valid value for style property

GetTextArray  ( grid, #GetTextArray, 0, 0, 0, 0, kid, @text$[] ) 

Send GetTextArray to a grid to get its text array. 

XuiSendMessage ( grid, #GetTextArray, 0, 0, 0, 0, kid, @text$[] ) 

grid,kid - target grid 
#GetTextArray - message: get text array 
text$[] - text array from grid,kid

GetTextArrayLine  ( grid, #GetTextArrayLine, line, 0, 0, @upper, kid, @text$ ) 

Send GetTextArrayLine to a grid to get one text string from its text array. The lower bound of the text array is 0. 

XuiSendMessage ( grid, #GetTextArrayLine, line, 0, 0, @upper, kid, @text$ ) 

grid,kid - target grid 
#GetTextArrayLine - message: get one line from text array 
line - line number to get ( 0 to UBOUND(text$[]) ) 
upper - UBOUND(text$[]) 
text$ - text line from text array in grid,kid

GetTextArrayLines  ( grid, #GetTextArrayLines, first, count, 0, @upper, kid, @text$[] ) 

Send GetTextArrayLines to a grid to get consecutive lines from its text array. The lower bound of the text array is 0. 

XuiSendMessage ( grid, #GetTextArrayLines, first, count, 0, @upper, kid, @text$[] ) 

grid,kid - target grid 
#GetTextArrayLines - message: get consecutive lines from text array 
first - first line number to get ( starts at 0 ) 
count - number of lines to get 
upper - upper bound of text$[] 
text$[] - text array with lines from text array

GetTextString  ( grid, #GetTextString, 0, 0, 0, 0, kid, @text$ ) 

Send GetTextString to a grid to get its text string. 

XuiSendMessage ( grid, #GetTextString, 0, 0, 0, 0, kid, @text$ ) 

grid,kid - target grid 
#GetTextString - message: get text string 
text$ - text string from grid,kid

GetTextStrings  ( grid, #GetTextStrings, 0, 0, 0, 0, kid, @text$[] ) 

Send GetTextStrings to a grid to get the text strings from the grid and its kids. 

XuiSendMessage ( grid, #GetTextStrings, 0, 0, 0, 0, kid, @text$[] ) 

grid,kid - target grid 
#GetTextStrings - message: get text string from grid,kid and its kids 
text$[] - text strings from grid,kid and its kids

GetTexture  ( grid, #GetTexture, @texture, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#GetTexture - message: get text texture (Flat/Lower/Raise/Shadow) 
texture - texture property 

GetValueArray  ( grid, #GetValueArray, 0, 0, 0, 0, kid, @value[] ) 

grid,kid - target grid 
#GetValueArray - message: get copy of XLONG value array property 
value[] - XLONG value array property

GetValue  ( grid, #GetValue, @v0, 0, 0, 0, kid, index ) 

grid,kid - target grid 
#GetValue - message: get one element of XLONG value array 
v0 - XLONG value from value array - value[index] 
index - element in value array to return

GetValues  ( grid, #GetValues, @v0, @v1, @v2, @v3, kid, index ) 

Send GetValues to a grid to get four elements from its XLONG value[] array starting at value[r1] . 

XuiSendMessage ( grid, GetValues, @v0, @v1, @v2, @v3, kid, @v4) 

grid,kid - target grid 
#GetValues - message: return four sequential values from value[] 
v0,v1,v2,v3 - value[r1+0] to value[r1+3] 
r1 - index into value[]

GetWindow  ( grid, #GetWindow, @window, @winType, @func, @windowGrid, kid, @focusGrid ) 

Send GetWindow to a grid to get the window number of the window containing it. The windowType, windowFunction, windowGrid, and keyboardFocusGrid are also returned. 

XuiSendMessage ( grid, #GetWindow, @window, @winType, @func, @windowGrid, kid, @focusGrid ) 

grid,kid - target grid 
#GetWindow - message: get window containing grid,kid 
window - window number of window containing grid,kid 
winType - window type assigned to window at create time 
func - window function assigned to window 
windowGrid - grid attached to window ( so they resize together ) 
focusGrid - grid given keyboard focus when window is selected

GetWindowFunction  ( grid, #GetWindowFunction, @func, 0, 0, 0, kid, 0 ) 

Send GetWindowFunction to a grid to get the window function of the window that contains the grid. 

XuiSendMessage ( grid, #GetWindowFunction, @func, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#GetWindowFunction - message: get window containing the grid 
func - address of window function of window

GetWindowGrid  ( grid, #GetWindowGrid, @windowGrid, 0, 0, 0, kid, 0 ) 

Send GetWindowGrid to a grid to get the window grid assigned to the window that contains grid. A window grid is a grid attached to a window so that the window resizes if the grid is resized. Grid functions establish this connection when their CreateWindow subroutines send RegisterGrid messages to XuiWindow() . 

XuiSendMessage ( grid, #GetWindowGrid, @windowGrid, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#GetWindowGrid - message: get window containing the grid 
windowGrid - grid number of grid attached to window

GetWindowIcon  ( grid, #GetWindowIcon, @icon, 0, @indentX, @indentY, kid, 0 ) 

Send GetWindowIcon to a grid to get the icon number of the icon assigned to the window that contains the grid. 

XuiSendMessage ( grid, #GetWindowIcon, @icon, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#GetWindowIcon - message: get icon number 
icon - icon number of window containing grid,kid

GetWindowSize  ( grid, #GetWindowSize, @xDisp, @yDisp, @width, @height, kid, 0 ) 

Send GetWindowSize to a grid to get the position and size of the window that contains the grid. 

XuiSendMessage ( grid, #GetWindowSize, @xDisp, @yDisp, @width, @height, kid, 0, ) 

grid,kid - target grid 
#GetWindowSize - message: get position and size of window 
xDisp,yDisp - display coordinates of upper left corner of window 
width,height - width and height of window in pixels

GetWindowTitle    ( grid, #GetWindowTitle, @window, 0, 0, 0, kid, @title$ ) 

Send GetWindowTitle to a grid to get the title string displayed on the window containing the grid. 

XuiSendMessage ( grid, #GetWindowTitle, @window, 0, 0, 0, kid, @title$ ) 

grid,kid - target grid 
#GetWindowTitle - message: get window title 
title$ - title of window containing grid

GotKeyboardFocus  ( grid, #GotKeyboardFocus, 0, 0, 0, 0, kid, 0 ) 

GotKeyboardFocus is sent to a grid by its window function when the grid is given keyboard focus, which means subsequent keyboard messages will be sent to the grid. Text grids normally display their text cursor when they receive GotKeyboardFocus and erase it when they receive LostKeyboardFocus . 

XuiSendMessage ( grid, #GotKeyboardFocus, 0, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#GotKeyboardFocus - message: got keyboard focus

GrabTextArray  ( grid, #GrabTextArray, 0, 0, 0, 0, kid, @text$[] ) 

Send GrabTextArray to a grid to grab its text array. 

Unlike GetTextArray , the original text array is returned, so the grid is left with an empty text array until it is reinstated or replaced by SetTextArray or PokeTextArray . 

GrabTextArray is provided for cases where a TextArea grid contains a large amount of text and the overhead of copying the entire text array with GetTextArray involves excessive overhead. 

XuiSendMessage ( grid, #GrabTextArray, 0, 0, 0, 0, kid, @text$[] ) 

grid,kid - target grid 
#GrabTextArray - message: Grab text array from grid 
text$[] - original text array stolen from grid

GrabValueArray  ( grid, #GrabValueArray, 0, 0, 0, 0, kid, @array[] ) 

Send GrabValueArray to a grid to grab its values[] array. The original array is returned, so the grid is left with an empty value[] array until it is replaced by PokeValueArray . 

GrabValueArray is provided for cases where a grid contains more data than is conveniently accessible with GetValues . 

XuiSendMessage ( grid, #GrabValueArray, 0, 0, 0, 0, kid, @array[] ) 

grid,kid - target grid 
#GrabValueArray - message: Grab value array from grid 
array[] - original values[] array removed from grid

Help  ( grid, #Help, x, y, state, time, @r0, 0 ) 

The Help message is sent to callback functions by XuiGetHelp() in response to GetHelp messages. Normally callback functions ignore Help messages and let the automatic help system function normally. 

If a callback function wants to suppress help, it can set r0 to -1 and return. If a callback function wants to provide special purpose help, it can send SetHelp and a help string to XuiHelp() for display in the HelpWindow, then set r0=-1 to suppress the normal help response (which would overwrite the custom help). 

The most common use of special purpose help is to provide more selective help information. If the help request originated in a TextArea grid, for example, a program could learn from the MouseDown coordinates in the x,y arguments what word the user clicked on, and provide special help for that word. 

XuiSendMessage ( grid, #Help, x, y, state, time, @r0, 0 ) 

grid - target grid 
#Help - message: Help callback 
x,y - window coordinates of MouseDown that initiated request 
state,time - mouse information that initiated request 
r0 - set to -1 to suppress displaying of help 

HideWindow  ( grid, #HideWindow, 0, 0, 0, 0, kid, 0 ) 

Send HideWindow to a grid to remove the window that contains the grid from the display. 

XuiSendMessage ( grid, #HideWindow, 0, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#HideWindow - message: hide the window that contains the grid

KeyDown  ( grid, #KeyDown, x, y, state, time, kid, 0 ) 

KeyDown is sent to a grid by a window function when it receives a WindowKeyDown message and the grid has keyboard focus. The arguments tell the position of the mouse cursor at the time the key down event was detected, the key that was depressed, other keyboard status information, and the system millisecond time that the key event was detected. Most programs respond to KeyDown and ignore KeyUp messages. 

XuiSendMessage ( grid, #KeyDown, x, y, state, time, kid, 0 ) 

grid,kid - target grid 
#KeyDown - message: keyboard key was pressed 
x,y - x,y coordinates of mouse cursor when key went down 
state - key that went down and other keyboard status information 
time - free running system millisecond time when key went down

KeyUp  ( grid, KeyUp, x, y, state, time, kid, 0 ) 

KeyUp is sent to a grid by a window function when it receives a WindowKeyUp message and the grid has keyboard focus. The arguments tell the position of the mouse cursor at the time the key up event was detected, the key that was released, other keyboard status information, and the system millisecond time that the key up event was detected. Most programs respond to KeyDown and ignore KeyUp. 

XuiSendMessage ( grid, #KeyUp, x, y, state, time, kid, 0 ) 

grid,kid - target grid 
#KeyUp - message: keyboard key was released 
x,y - x,y coordinates of mouse cursor when key went up 
state - key that went down and other keyboard status information 
time - free running system millisecond time when key went up

LostKeyboardFocus  ( grid, #LostKeyboardFocus, 0, 0, 0, 0, kid, 0 ) 

LostKeyboardFocus is sent to a grid by window functions when the keyboard focus is taken from the grid and assigned to another. Subsequent keyboard messages will be sent to the new grid. Text grids normally display their text cursor when they receive a GotKeyboardFocus message, and erase it when they receive a LostKeyboardFocus message. 

XuiSendMessage ( grid, #LostKeyboardFocus, 0, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#LostKeyboardFocus - message: grid,kid lost keyboard focus

MaximizeWindow  ( grid, #MaximizeWindow, 0, 0, 0, 0, kid, 0 ) 

Send MaximizeWindow to a grid to display the window that contains the grid as large as possible up to the size of the display. 

XuiSendMessage ( grid, #MaximizeWindow, 0, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#MaximizeWindow - message: maximize the window that contains grid

MinimizeWindow  ( grid, #MinimizeWindow, 0, 0, 0, 0, kid, 0 ) 

Send MinimizeWindow to a grid to remove the window that contains the grid from the display, and replace it with a small icon that can be double-clicked to restore the window. 

XuiSendMessage ( grid, #MinimizeWindow, 0, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#MinimizeWindow - message: minimize the window that contains grid

MonitorContext  ( grid, #MonitorContext, callGrid, callFunc, 0, 0, kid, 0 ) 

grid,kid - target grid 
#MonitorContext - message: monitor context of window 
callGrid - grid argument in ContextChange callback message 
callFunc - function called with ContextChange message

MonitorKeyboard  ( grid, #MonitorKeyboard, callGrid, callFunc, 0, 0, kid, 0 ) 

grid,kid - target grid 
#MonitorKeyboard - message: monitor keyboard events 
callGrid - grid argument in keyboard callback messages 
callFunc - function called with keyboard callback messages

MonitorMouse  ( grid, #MonitorMouse, callGrid, callFunc, 0, 0, kid, 0 ) 

grid,kid - target grid 
#MonitorMouse - message: monitor mouse events 
callGrid - grid argument in mouse callback messages 
callFunc - function called with mouse callback messages

MouseDown  ( grid, #MouseDown, x, y, state, time, kid, 0 ) 

MouseDown is sent to a grid when one of the mouse buttons is depressed. The window coordinates of the mouse cursor, the state of the mouse buttons, and the millisecond system time are provided. 

XuiSendMessage ( grid, #MouseDown, x, y, state, time, kid, 0 ) 

grid,kid - target grid 
#MouseDown - message: mouse button was pressed 
x,y - coordinates of mouse cursor 
state - state of mouse buttons and keyboard keys 
time - system millisecond timer when mouse button was pressed

MouseDrag  ( grid, #MouseDrag, x, y, state, time, kid, 0 ) 

MouseDrag is sent to a grid when the mouse moves while one or more mouse buttons is down. The window coordinates of the mouse cursor, the state of the mouse buttons, and the millisecond system time are provided. 

XuiSendMessage ( grid, #MouseDrag, x, y, state, time, kid, 0 ) 

grid,kid - target grid 
#MouseDrag - message: mouse moved with one or more buttons down 
x,y - coordinates of mouse cursor 
state - state of mouse buttons and keyboard keys 
time - system millisecond timer when drag was detected

MouseEnter  ( grid, #MouseEnter, x, y, state, time, kid, 0 ) 

MouseEnter is sent to a grid when the mouse cursor enters the grid, (after MouseExit is sent to the grid it left, if any). 

XuiSendMessage ( grid, #MouseEnter, x, y, state, time, kid, 0 ) 

grid,kid - target grid 
#MouseEnter - message: mouse entered grid 
x,y - coordinates of mouse cursor 
state - state of mouse buttons and keyboard 
time - system millisecond timer when enter was detected

MouseExit  ( grid, #MouseExit, x, y, state, time, kid, 0 ) 

MouseExit is sent to a grid when the mouse cursor leaves the grid, before a MouseEnter is sent to the grid it enters, if any. 

XuiSendMessage ( grid, #MouseExit, x, y, state, time, kid, 0 ) 

grid,kid - target grid 
#MouseExit - message: mouse exited grid 
x,y - coordinates of mouse cursor 
state - state of mouse buttons and keyboard 
time - system millisecond timer when exit was detected

MouseMove  ( grid, #MouseMove, x, y, state, time, kid, 0 ) 

MouseMove is sent to a grid when the mouse cursor moves from its last reported position. If any mouse buttons are down, MouseDrag is sent instead of MouseMove . 

XuiSendMessage ( grid, #MouseMove, x, y, state, time, kid, 0 ) 

grid,kid - target grid 
#MouseMove - message: mouse moved with no buttons down 
x,y - coordinates of mouse cursor 
state - state of mouse buttons and keyboard 
time - system millisecond timer when move was detected

MouseUp  ( grid, #MouseUp, x, y, state, time, kid, 0 ) 

MouseUp is sent to a grid when a mouse button is released while the mouse cursor is within grid. 

XuiSendMessage ( grid, #MouseUp, x, y, state, time, kid, 0 ) 

grid,kid - target grid 
#MouseUp - message: mouse button released in grid 
x,y - coordinates of mouse cursor 
state - state of mouse buttons and keyboard 
time - system millisecond timer when move was detected

PokeTextArray  ( grid, #PokeTextArray, 0, 0, 0, 0, kid, @text$[] ) 

Send PokeTextArray to a grid to set its text array without changing the values of its text cursor. 

XuiSendMessage ( grid, #PokeTextArray, 0, 0, 0, 0, kid, @text$[] ) 

grid,kid - target grid 
#PokeTextArray - message: set text array without changing text cursor 
text$[] - text array to set

PokeValueArray  ( grid, #PokeValueArray, 0, 0, 0, 0, kid, @array[] ) 

Send PokeValueArray to install its value[] array. The original array is installed in the grid, so an empty value[] array is returned. 

PokeValueArray is provided for cases where a grid contains more data than is accessible with SetValues . 

XuiSendMessage ( grid, #PokeValueArray, 0, 0, 0, 0, kid, @array[] ) 

grid,kid - target grid 
#PokeValueArray - message: Poke value array into grid 
array[] - value[] array to install in grid ( stolen )

Redraw  ( grid, #Redraw, x, y, width, height, kid, 0 ) 

Send Redraw to a grid to make it redraw itself and its kids. Grids first redraw themselves, then send redraw messages to their kids. If the redraw is in response to a WindowExpose message, the window coordinates of the rectangle that was exposed is supplied. Grids can return without redrawing themselves if they do not extend into the area delimited by x,y,width,height . 

width or height <= 0 means redraw is required. 

XuiSendMessage ( grid, #Redraw, x, y, width, height, kid, 0 ) 

grid,kid - target grid 
#Redraw - message: redraw grid and kids 
x,y - coordinates of upper-left of exposed area 
width,height - size of exposed area ( <= 0 means always redraw )

RedrawGrid  ( grid, #RedrawGrid, x, y, width, height, kid, 0 ) 

Send RedrawGrid to a grid to make it redraw itself, but not its kids. If the redraw is in response to a WindowExpose message, the window coordinates of the rectangle that was exposed is supplied. Grids can return without redrawing themselves if they do not extend into the area delimited by x,y,width,height . 

width <= 0 or height <= 0 means redraw is required. 

XuiSendMessage ( grid, #Redraw, x, y, width, height, kid, 0 ) 

grid,kid - target grid 
#RedrawGrid - message: redraw grid, but not kids 
x,y - coordinates of upper-left of exposed area 
width,height - size of exposed area ( <= 0 means always redraw )

RedrawWindow  ( grid, #RedrawWindow, xWin, yWin, width, height, kid, 0 ) 

Send RedrawWindow to a grid to redraw all or part of the window that contains the grid. A Redraw message with the xWin,yWin,width,height arguments is sent to every parentless grid in the window. To force the entire window to be redrawn, set width or height to 0 . 

XuiSendMessage ( grid, #RedrawWindow, xWin, yWin, width, height, kid, 0 ) 

grid,kid - target grid 
#RedrawWindow - message: redraw the window that contains grid 
xWin,yWin - window coords of upper-left of rectangle to redraw 
width,height - size of rectangle to be redrawn

Resize  ( grid, #Resize, x, y, width, height, kid, 0 ) 

Send Resize to a grid to change its position and/or size in its window. Most grids comply to reasonable resize requests, but some grids do not resize, or do not resize below or above certain limits. Therefore it may be necessary to check the size of a grid after a resize request. 

XuiSendMessage ( grid, #Resize, x, y, width, height, kid, 0 ) 

grid,kid - target grid 
#Resize - message: resize a grid 
x,y - coords of upper-left corner of grid in parent 
width,height - size of grid

ResizeNot  ( grid, #Resize, x, y, width, height, kid, 0 ) 

grid,kid - target grid 
#Resize - message: resize (#ResizeNot also acceptable) 
x,y - coords of new upper-left corner of grid 
width,height - ignored

ResizeWindow  ( grid, #ResizeWindow, xDisp, yDisp, width, height, kid, 0 ) 

Send ResizeWindow to a grid to reposition and/or resize the window that contains the grid. 

XuiSendMessage ( grid, #ResizeWindow, xDisp, yDisp, width, height, kid, 0 ) 

grid,kid - target grid 
#ResizeWindow - message: resize the window that contains grid 
xDisp,yDisp - display coordinates of upper-left corner of window 
width,height - size of window

ResizeWindowToGrid  ( grid, #ResizeWindowToGrid, 0, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#ResizeWindowToGrid - message: resize window to fit window grid

SelectWindow  ( grid, #SelectWindow, 0, 0, 0, 0, kid, 0 ) 

Send SelectWindow to any grid in a window to select the window. The window is displayed and given keyboard focus. 

XuiSendMessage ( grid, #SelectWindow, 0, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#SelectWindow - message: display and give keyboard focus to window

Selection  ( grid, #Selection, 0, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#Selection - message: selection callback message

SetBorder  ( grid, #SetBorder, border, borderUp, borderDown, 0, kid, 0 ) 

Send SetBorder to a grid to set its current border style, borderUp style, and/or borderDown style. Send -1 in any argument to leave the current value unchanged. 

XuiSendMessage ( grid, #SetBorder, border, borderUp, borderDown, 0, kid, 0 ) 

grid,kid - target grid 
#SetBorder - message: set grid border styles and/or text indent 
border - the current border style 
borderUp - the borderUp style 
borderDown - the borderDown style

SetCallback  ( grid, #SetCallback, callGrid, callFunc, v2, v3, r0, r1 ) 

Send SetCallback to a grid to set its callback information, which includes a callback grid, callback function, and callback indices. To cancel a callback, send 0 in callGrid and callFunc . 

Whenever the grid sends a callback message, the function whose address is callFunc is called and passed arguments callGrid,#Callback,v0,v1,v2,v3,r0,message . 

message,v0,v1 are values from the original callback message, and callGrid is from the SetCallback call. 

v2,v3,r0 are values from the original callback message if v2,v3,r0 in the SetCallback message were -1 . Arguments that were not -1 contain their SetCallback value. 

Functions called with callback messages can get the original callback message arguments by calling XuiCallback() directly with a GetCallbackArgs message. 

XuiSendMessage ( grid, #SetCallback, callGrid, callFunc, v2, v3, r0, r1 ) 

grid - target grid 
#SetCallback - message: set the callback function for grid 
callGrid - becomes grid argument in callback message 
callFunc - address of function to send callback messages to 
v2,v3,r0,r1 - values to send back with callback messages

SetColor  ( grid, #SetColor, back, draw, low, high, kid, 0 ) 

Send SetColor to a grid to set its background, drawing, highlight, and/or lowlight colors. Send -1 in any argument to leave the current value unchanged. 

XuiSendMessage ( grid, #SetColor, back, draw, low, high, kid, 0 ) 

grid,kid - target grid 
#SetColor - message: set main grid colors 
back - background color 
draw - drawing color 
low - lowlight color ( 3D down slope color ) 
high - highlight color ( 3D up slope color )

SetColorExtra  ( grid, #SetColorExtra, dull, accent, lowText, highText, 0, kid, 0 ) 

Send SetColorExtra to a grid to set its dull, accent, lowText, and highText colors. Send -1 in any argument to leave the current value unchanged. 

XuiSendMessage ( grid, #SetColorExtra, dull, accent, lowText, highText, kid, 0 ) 

grid,kid - target grid 
#SetColorExtra - message: set auxiliary grid colors 
dull - dull color ( disabled features, etc... ) 
accent - accent color ( selected text, etc... ) 
loText - text 3D texture color (darker) 
hiText - text 3D texture color (lighter)

SetCursor  ( grid, #SetCursor, cursor, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#SetCursor - message: set mouse cursor number 
cursor - mouse cursor number

SetFont  ( grid, #SetFont, size, weight, italic, angle, kid, @typeface$ ) 

grid,kid - target grid 
#SetFont - message: set font to specified characteristics 
size - point size in .1 point units 
weight - boldness from 0 to 1000 (extra thin to extra heavy) 
italic - italic tilt (T/F) 
angle - angle of text from horizontal in .1 degree units 
typeface$ - name of font typeface (Courier New, Times New Roman...)

SetFontNumber  ( grid, #SetFontNumber, font, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#SetFontNumber - message: set font number property 
font - font number

SetGridFunction  ( grid, #SetGridFunction, func, 0, 0, 0, kid, 0 ) 

Send SetGridFunction to a grid to set the address of its grid function. 

XuiSendMessage ( grid, #SetGridFunction, func, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#SetGridFunction - message: set grid function 
func - address of grid function assigned to grid,kid

SetGridFunctionName  ( grid, #SetGridFunctionName, 0, 0, 0, 0, kid, @name$ ) 

grid,kid - target grid 
#SetGridFunctionName - message: set grid function name property 
name$ - grid function name

SetGridName  ( grid, #SetGridName, 0, 0, 0, 0, kid, @gridName$ ) 

Send SetGridName to a grid to set its grid name. If you never assign a name to a grid, a default name based on the grid type and grid number is assigned. 

XuiSendMessage ( grid, #SetGridName, 0, 0, 0, 0, kid, @gridName$ ) 

grid,kid - target grid 
#SetGridName - message: set grid name 
gridName$ - grid name of grid,kid

SetGridType  ( grid, #SetGridType, gridType, 0, 0, 0, kid, 0 ) 

Send SetGridType to a grid to set its grid type. 

XuiSendMessage ( grid, #SetGridType, @g, gridType, 0, 0, kid, 0 ) 

grid,kid - target grid 
#SetGridFunction - message: set grid type 
g - grid number of grid,kid 
gridType - grid type of grid,kid

SetGridTypeName  ( grid, #SetGridTypeName, 0, 0, 0, 0, kid, @name$ ) 

grid,kid - target grid 
#SetGridTypeName - message: set grid type name property 
name$ - grid type name

SetHelp  ( grid, #SetHelp, 0, 0, 0, 0, kid, help$ ) 

grid,kid - target grid 
#SetHelp - message: set string in InstantHelp window 
help$ - string to display in InstantHelp window

SetHelpFile  ( grid, #SetHelpFile, 0, 0, 0, 0, kid, filename$ ) 

grid,kid - target grid (any valid grid) 
#SetHelpFile - message: set default help file name 
filename$ - default help file name

SetHelpString  ( grid, #SetHelpString, wild, 0, 0, 0, kid, @help$ ) 

Send SetHelpString to a grid to set its current help string. This can be an empty string, "filename:entryname", ":entryname", or help text. 

XuiSendMessage ( grid, #SetHelpString, wild, 0, 0, 0, kid, @help$ ) 

grid,kid - target grid 
#SetHelpString - message: set help string 
wild - message also sent to kids of grid,kid if wild = -1 
help$ - help string

SetHelpStrings  ( grid, #SetHelpStrings, 0, 0, 0, 0, kid, @help$[] ) 

Send SetHelpStrings to a grid to set its help string and the help strings of all its kids. Each help string can be an empty string, "filename:entryname", ":entryname", or the help text itself. 

XuiSendMessage ( grid, #SetHelpStrings, 0, 0, 0, 0, kid, @help$[] ) 

grid,kid - target grid 
#SetHelpStrings - message: set help string for grid and its kids 
help$[] - help string for grid and its kids

SetImage  ( grid, #SetImage, image, align, inX, inY, kid, image$ ) 

grid,kid - target grid 
#SetImage - message: set image grid property 
image - optional image grid number (if image$ is empty) 
align - image alignment in grid (may not be implemented) 
inX - x-axis indent from grid border 
inY - y-axis indent from grid border 
image$ - filename of bitmap image

SetImageCoords  ( grid, #SetImageCoords, offsetX, offsetY, width, height, kid, 0 ) 

grid,kid - target grid 
#SetImageCoords - message: set active area of image grid properties 
offsetX,offsetY - x,y offset in image grid to begin display 
width,height - width,height of image grid to display

SetJustify  ( grid, #SetJustify, justX, justY, inX, inY, kid, 0 ) 

Send SetJustify to a grid to set its x and y text justify numbers, and/or its x and y text indent. Send -1 in any argument to leave the current value unchanged. 

XuiSendMessage ( grid, #SetJustify, justX, justY, inX, inY, kid, 0 ) 

grid,kid - target grid 
#SetJustify - message: Set xy justify and/or xy text indent 
justX,justY - the x,y justify numbers 
inX,inY - x,y text indent in pixels ( unless centered ) 
width - width of the up border style 

justX,justY = 0 - left,top justify 
justX,justY = 1 - center,middle justify 
justX,justY = 2 - right,bottom justify

SetKeyboardFocus  ( grid, #SetKeyboardFocus, focusGrid, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#SetKeyboardFocus - message: set keyboard focus 
focusGrid - keyboard focus grid if non-zero else target

SetKeyboardFocusGrid  ( grid, #SetKeyboardFocusGrid, focusGrid, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#SetKeyboardFocusGrid - message: set keyboard focus grid for window 
focusGrid - keyboard focus grid if non-zero else target

SetMaxMinSize  ( grid, #SetMaxMinSize, maxW, maxH, minW, minH, kid, 0 ) 

Send SetMaxMinSize to a grid to set is maximum and minimum width,height under any circumstances. -1 in any min/max argument means don't change the current value. 

XuiSendMessage ( grid, #SetMaxMinSize, maxW, maxH, minW, minH, kid, 0 ) 

grid,kid - target grid 
#SetMaxMinSize - message: set max/min width/height of grid,kid 
maxW,maxH - maximum possible width and height of grid,kid 
minW,minH - minimum possible width and height of grid,kid

SetMessageFunc  ( grid, #SetMessageFunc, msg, func, 0, 0, kid, 0 ) 

Send SetMessageFunc to a grid to set the address of the function that processes message number msg . 

XuiSendMessage ( grid, #SetMessageFunc, msg, func, 0, 0, kid, 0 ) 

grid,kid - target grid 
#SetMessageFunc - message: set message function address for a message 
msg - message number to set function address for 
func - address of function executed in response to msg

SetMessageFuncArray  ( grid, #SetMessageFuncArray, 0, 0, 0, 0, kid, @func[] ) 

Send SetMessageFuncArray to a grid to set the addresses of the functions that process messages for the grid. 

XuiSendMessage ( grid, #SetMessageFuncs, 0, 0, 0, 0, kid, @func[] ) 

grid,kid - target grid 
#SetMessageFuncs - message: set message function addresses 
func[] - addresses of message functions

SetPosition  ( grid, #SetPosition, zero, low, high, highest, kid, 0 ) 

grid,kid - target grid 
#SetPosition - message: set scale/scroll position 
zero - lowest possible value, usually 0 
low - low end of range (scroll-bar slider) 
high - high end of current range (scroll-bar slider) 
highest - highest possible value, usually max line #

SetSize  ( grid, #SetSize, x, y, width, height, kid, 0 ) 

Send SetSize to a grid to set the position of its upper-left corner in window coordinates, and its size in pixels. 

XuiSendMessage ( grid, #SetSize, x, y, width, height, kid, 0 ) 

grid,kid - target grid 
#SetSize - message: set position in window and width,height 
x,y - upper-left corner of grid,kid in parent 
width,height - width and height of grid,kid in pixels

SetState  ( grid, #SetState, state, keyboard, mouse, redraw, kid, 0 ) 

Send SetState to a grid to set its master, keyboard, mouse, and redraw disabled/enabled states. See the Disable and Enable messages for related information. 

XuiSendMessage ( grid, #SetState, state, keyboard, mouse, redraw, kid, 0 ) 

grid,kid - target grid 
#SetState - message: set disable/enable state ( FALSE / TRUE ) 
state - master disable/enable state ( keyboard,mouse,redraw ) 
keyboard - keyboard disable/enable state 
mouse - mouse disable/enable state 
redraw - redraw disable/enable state

SetStateFlags  ( grid, #SetStateFlags, state, keyboard, mouse, redraw, kid, 0 ) 

Send SetStateFlags to a grid to set its master, keyboard, mouse, and redraw disabled/enabled state flags. 

XuiSendMessage ( grid, #SetState, state, keyboard, mouse, redraw, kid, 0 ) 

grid,kid - target grid 
#SetStateFlags - message: set disable/enable state ( FALSE / TRUE ) 
state - master disable/enable state flags 
keyboard - keyboard disable/enable state flags 
mouse - mouse disable/enable state flags 
redraw - redraw disable/enable state flags

SetStyle  ( grid, #SetStyle, style, styleMax, 0, 0, kid, 0 ) 

grid,kid - target grid 
#SetStyle - message: set style property 
style - style property 
styleMax - maximum valid value of style property

SetTextArray  ( grid, #SetTextArray, 0, 0, 0, 0, kid, @text$[] ) 

Send SetTextArray to a grid to set its text array. 

XuiSendMessage ( grid, #SetTextArray, 0, 0, 0, 0, kid, @text$[] ) 

grid,kid - target grid 
#SetTextArray - message: set text array 
text$[] - text array

SetTextArrayLine  ( grid, #SetTextArrayLine, line, 0, 0, @upper, kid, @text$ ) 

Send SetTextArrayLine to a grid to get one text string from its text array. The lower bound of the text array is 0. 

XuiSendMessage ( grid, #SetTextArrayLine, line, 0, 0, @upper, kid, @text$ ) 

grid,kid - target grid 
#SetTextArrayLine - message: set one line in text array 
line - line number to set ( 0 to UBOUND(text$[]) )  
upper - upper bound of text$[] 
text$ - text line to put in text array

SetTextString  ( grid, #SetTextString, 0, 0, 0, 0, kid, @text$ ) 

Send SetTextString to a grid to set its text string. 

XuiSendMessage ( grid, #SetTextString, 0, 0, 0, 0, kid, @text$ ) 

grid,kid - target grid 
#SetTextString - message: set text string 
text$ - text string to put in grid

SetTextStrings    ( grid, #SetTextStrings, 0, 0, 0, 0, kid, @text$[] ) 

Send SetTextStrings to a grid to set text strings for the grid and its kids. If the last element in text$[] is reached before the last kid, the text strings in the rest of the kids are not changed. 

XuiSendMessage ( grid, #SetTextStrings, 0, 0, 0, 0, kid, @text$[] ) 

grid,kid - target grid 
#SetTextStrings - message: set text strings in grid and its kids 
text$[] - text strings for grid and its kids

SetTexture  ( grid, #SetTexture, texture, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#SetTexture - message: set text texture property 
texture - text texture (Flat/Lower/Raise/Shadow)

SetValue  ( grid, #SetValue, v0, v1, v2, v3, kid, r1 ) 

Send SetValue to a grid to set the value of value[r1] . 

XuiSendMessage ( grid, #SetValue, v0, 0, 0, 0, kid, r1 ) 

grid,kid - target grid 
#SetValue - message: set value[r1] to v0 
v0 - value to assign to value[r1] 
r1 - index into value[]

SetValues  ( grid, #SetValues, v0, v1, v2, v3, kid, r1 ) 

Send SetValues to a grid to set the values of up to four elements in its XLONG value[] array starting with value[r1] . 

XuiSendMessage ( grid, #SetValues, v0, v1, v2, v3, kid, r1 ) 

grid,kid - target grid 
#SetValues - message: set value[r1+0] thru value[r1+3] for grid 
v0,v1,v2,v3, - value[r1+0] to value[r1+3] 
r1 - starting index ( value[r1+0], value[r1+1] ... )

SetValueArray  ( grid, #SetValueArray, 0, 0, 0, 0, kid, @value[] ) 

grid,kid - target grid 
#SetValueArray - message: set XLONG value array property 
value[] - XLONG value array

SetWindowFunction    ( grid, #SetWindowFunction, func, 0, 0, 0, kid, 0 ) 

Send SetWindowFunction to a grid to set the address of the window function of the window that contains the grid. 

XuiSendMessage ( grid, #SetWindowFunction, func, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#SetWindowFunction - message: set window function address 
func - address of window function for window

SetWindowIcon  ( grid, #SetWindowIcon, icon, 0, 0, 0, kid, @icon$ ) 

grid,kid - target grid 
#SetWindowIcon - message: set window icon 
icon - icon number if icon$ is an empty string 
icon$ - name of icon

SetWindowTitle    ( grid, #SetWindowTitle, @window, 0, 0, 0, kid, @title$ ) 

Send SetWindowTitle to a grid to set the title string displayed on the window that contains the grid. 

XuiSendMessage ( grid, #SetWindowTitle, 0, 0, 0, 0, kid, @title$ ) 

grid,kid - target grid 
#SetWindowTitle - message: set window title 
title$ - title of window

ShowWindow  ( grid, #ShowWindow, 0, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#ShowWindow - message: show window but don't select it

TimeOut  ( grid, #TimeOut, msTime, 0, 0, 0, kid, 0 ) 

A TimeOut is sent to a grid by GraphicsDesigner when its grid timer has timed out. 

XuiSendMessage ( grid, #TimeOut, msTime, 0, 0, 0, kid, 0 ) 

grid,kid - target grid 
#TimeOut - message: grid timer has timed out 
msTime - free-running system millisecond time

WindowCreate  ( @grid, #WindowCreate, xDisp, yDisp, width, height, winType, display$ ) 

grid - grid number of created window grid 
#WindowCreate - message: create window filled with a window grid 
xDisp,yDisp - display coords of upper-left corner of window innards 
width,height - width,height in pixels of window innards 
winType - windowType OR parentWindow 
display$ - display name to contain window

WindowDeselected  ( window, #WindowDeselected, 0, 0, 0, 0, 0, window ) 

WindowDeselected is sent to a window by GraphicsDesigner after the window is deselected because another window was selected. WindowDeselected is sent before WindowSelected . 

XuiSendMessage ( window, #WindowDeselected, 0, 0, 0, 0, 0, window ) 

window - window number 
#WindowDeselected - message: window deselected (another was selected) 
window - dup of 1st argument sent by GraphicsDesigner

WindowDestroy  ( window, #WindowDestroy, 0, 0, 0, 0, 0, 0 ) 

Send WindowDestroy to a window to destroy the window and all grids in the window. The window sends Destroyed messages to all parentless grids in the window before it destroys itself and removes itself from the display. 

The first argument must be a window number, not a grid number. DestroyWindow is a grid message that accomplishes the same thing, but takes a grid number (of any grid in the window). 

XuiSendMessage ( window, #WindowDestroy, 0, 0, 0, 0, 0, 0 ) 

window - window number 
#WindowDestroy - message: destroy window and all grids in window

WindowDestroyed  ( window, #WindowDestroyed, 0, 0, 0, 0, 0, window ) 

WindowDestroyed is sent to a window by GraphicsDesigner when the window has been destroyed by the user or program. 

XuiSendMessage ( window, #WindowDestroyed, 0, 0, 0, 0, 0, window ) 

window - window number 
#WindowDestroyed - message: window has been destroyed 
window - duplicate of 1st argument sent by GraphicsDesigner

WindowDisplay  ( window, #WindowDisplay, 0, 0, 0, 0, 0, 0 ) 

Send WindowDisplay to a window to display and select the window. 

The first argument must be a grid number, not a window number. DisplayWindow is a grid message that accomplishes the same thing but takes a grid number (of any grid in the window). 

XuiSendMessage ( window, #WindowDisplay, 0, 0, 0, 0, 0, 0 ) 

window - window number 
#WindowDisplay - message: display window

WindowDisplayed  ( window, #WindowDisplayed, 0, 0, 0, 0, 0, window ) 

WindowDisplayed is sent to a window by GraphicsDesigner when the window state changes from hidden or iconified to displayed, whether by the user or program. 

XuiSendMessage ( window, #WindowDisplayed, 0, 0, 0, 0, 0, window ) 

window - window number 
#WindowDisplayed - message: window has been displayed 
window - duplicate of 1st argument sent by GraphicsDesigner

WindowGetDisplay  ( window, #WindowGetDisplay, 0, 0, 0, 0, 0, @display$ ) 

window - window number 
#WindowGetDisplay - message: get display associated with window 
display$ - name of display - empty string = default display

WindowGetKeyboardFocusGrid  ( window, #WindowGetKeyboardFocusGrid, @focusGrid, 0, 0, 0, 0, 0 ) 

window - window number 
#WindowGetKeyboardFocusGrid - message: get window keyboard focus grid 
focusGrid - grid with most recent focus in window

WindowGetKidArray  ( window, #WindowGetKidArray, 0, 0, 0, 0, 0, @kid[] ) 

window - window number 
#WindowGetKidArray - message: get array of kid window numbers 
kid[] - array of kid window numbers

WindowGetSelectedWindow  ( window, #WindowGetSelectedWindow, @selectedWindow, 0, 0, 0, 0, 0 ) 

window - window number 
#WindowGetSelectedWindow - message: get selected window (0 = none) 
selectedWindow - currently selected window

WindowGetSize  ( window, #WindowGetSize, @xDisp, @yDisp, @width, @height, 0, 0 ) 

window - window number 
#WindowGetSize - message: get display position and size of window 
xDisp,yDisp - x,y position of window innards on display 
width,height - width,height in pixels of window innards

WindowGetTitle  ( window, #WindowGetTitle, 0, 0, 0, 0, 0, @title$ ) 

Send WindowGetTitle to a window to get its title string. The first argument must be a window number, not a grid number. GetWindowTitle is a grid message that accomplishes the same thing but takes a grid number (of any grid in the window). 

XuiSendMessage ( window, #WindowGetTitle, 0, 0, 0, 0, 0, @title$ ) 

window - window number 
#WindowGetTitle - message: get window title string 
title$ - title string

WindowHide  ( window, #WindowHide, 0, 0, 0, 0, 0, 0 ) 

Send WindowHide to a window to remove it from the display. The first argument must be a window number, not a grid number. HideWindow is a grid message that accomplishes the same thing but takes a grid number (of any grid in the window). 

XuiSendMessage ( window, #WindowHide, 0, 0, 0, 0, 0, 0 ) 

window - window number 
#WindowHide - message: hide the window

WindowHidden  ( window, #WindowHidden, 0, 0, 0, 0, 0, window ) 

WindowHidden is sent to a window by GraphicsDesigner when the window is hidden by the user or program. 

XuiSendMessage ( window, #WindowHidden, 0, 0, 0, 0, 0, window ) 

window - window number 
#WindowHidden - message: window has been hidden 
window - duplicate of 1st argument sent by GraphicsDesigner

WindowKeyDown  ( window, #WindowKeyDown, xWin, yWin, state, time, 0, 0 ) 

window - window number 
#WindowKeyDown - message: key down event in selected window 
xWin,yWin - window coords of current mouse cursor 
state - keyboard key and mouse button state information 
time - free-running system millisecond timer

WindowKeyUp  ( window, #WindowKeyUp, xWin, yWin, state, time, 0, 0 ) 

window - window number 
#WindowKeyUp - message key up event in selected window 
xWin,yWin - window coords of current mouse cursor 
state - keyboard key and mouse button state information 
time - free-running system millisecond timer

WindowMaximize  ( window, #WindowMaximize, 0, 0, 0, 0, 0, 0 ) 

Send WindowMaximize to a window to make it as large as possible, up to the size of the display. 

The first argument must be a window number, not a grid number. MaximizeWindow is a grid message that accomplishes the same thing but takes a grid number (of any grid in the window). 

XuiSendMessage ( window, #WindowMaximize, 0, 0, 0, 0, 0, 0 ) 

window - window number 
#WindowMaximize - message: maximize the window

WindowMaximized  ( window, #WindowMaximized, 0, 0, 0, 0, 0, window ) 

WindowMaximized is sent to a window when the window is maximized by the user. 

XuiSendMessage ( window, #WindowMaximized, 0, 0, 0, 0, 0, window ) 

window - window number 
#WindowMaximized - message: window has been maximized 
window - duplicate of 1st argument

WindowMinimize  ( window, #WindowMinimize, 0, 0, 0, 0, 0, 0 ) 

Send WindowMinimize to a window to remove it from the display and replace it with a small icon, usually along the bottom edge of the display. 

The first argument must be a window number, not a grid number. MinimizeWindow is a grid message that accomplishes the same thing but takes a grid number (of any grid in the window). 

XuiSendMessage ( window, #WindowMinimize, 0, 0, 0, 0, 0, 0 ) 

window - window number 
#WindowMinimize - message: minimize the window

WindowMinimized  ( window, #WindowMinimized, 0, 0, 0, 0, 0, window ) 

WindowMinimized is sent to a window when the window is minimized by the user or program. 

XuiSendMessage ( window, #WindowMinimized, 0, 0, 0, 0, 0, window ) 

window - window number 
#WindowMinimized - message: window has been minimized 
window - duplicate of 1st argument

WindowMonitorContext  ( window, #WindowMonitorContext, @callGrid, @callFunc, 0, 0, 0, 0 ) 

window - window number 
#WindowMonitorContext - message: monitor window changes 
callGrid - grid argument in ContextChange callbacks 
callFunc - callback function

WindowMonitorKeyboard  ( window, #WindowMonitorKeyboard, @callGrid, @callFunc, 0, 0, 0, 0 ) 

window - window number 
#WindowMonitorKeyboard - message: monitor keyboard events 
callGrid - grid argument in keyboard callbacks 
callFunc - callback function

WindowMonitorMouse  ( window, #WindowMonitorMouse, @callGrid, @callFunc, 0, 0, 0, 0 ) 

window - window number 
#WindowMonitorMouse - message: monitor mouse events 
callGrid - grid argument in mouse callbacks 
callFunc - callback function

WindowRedraw  ( window, #WindowRedraw, xWin, yWin, width, height, 0, window ) 

WindowRedraw is sent to a window by GraphicsDesigner when all or part of the window needs to be redrawn because its was uncovered by another window, or because its was displayed from a hidden or iconified state. If width <= 0 or height <= 0 , the whole window needs to be redrawn, otherwise the part of the window in the rectangle described by xWin,yWin,width,height needs to be redrawn. 

In response to WindowRedraw messages, window functions send a Redraw message to every parentless grid in the window, along with the x,y,width,height arguments. 

XuiSendMessage ( window, #WindowRedraw, xWin, yWin, width, height, 0, window ) 

window - window number 
#WindowRedraw - message: redraw all or part of a window 
window - duplicate of 1st argument sent by GraphicsDesigner

WindowRegister  ( window, #WindowRegister, winGrid, -1, width, height, @win, title$ ) 

window - window number 
#WindowRegister - message: register window grid, title, etc 
winGrid - window grid (grid to fill window) 
width,height - width,height in pixels of window innards 
win - window number returned 
title$ - window title

WindowResize  ( window, #WindowResize, xDisp, yDisp, width, height, 0, 0 ) 

Send WindowResize to a window to reposition it on the display and/or resize it. -1 can be sent in xDisp and/or yDisp to accept a default window position on that axis. A value <=0 can be supplied in width and/or height to tell the window to resize to its window grid. 

The first argument must be a window number, not a grid number. Resize is a grid message that accomplishes the same thing if sent to a grid created by CreateWindow , but takes a grid number of any grid in the window. 

XuiSendMessage ( window, #WindowResize, 0, 0, 0, 0, 0, window ) 

window - window number 
#WindowResize - message: Resize the window 
xDisp,yDisp - display coords of upper-left corner of window 
width,height - size of window in pixels

WindowResized  ( window, #WindowResized, xDisp, yDisp, width, height, 0, window ) 

WindowResized is sent to a window by GraphicsDesigner after its has been resized. 

XuiSendMessage ( window, #WindowResized, xDisp, yDisp, width, height, 0, window ) 

window - window number 
#WindowResized - message: Window has been resized by user

WindowSelect  ( window, #WindowSelect, 0, 0, 0, 0, 0, 0 ) 

Send WindowSelect to a window to display and select the window. 

The first argument must be a window number, not a grid number. SelectWindow is a grid message that accomplishes the same thing but takes a grid number (of any grid in the window). 

XuiSendMessage ( window, #WindowSelect, 0, 0, 0, 0, 0, 0 ) 

window - window number 
#WindowSelect - message: display and select window

WindowSelected    ( window, #WindowSelected, 0, 0, 0, 0, 0, window ) 

XuiSendMessage ( window, #WindowSelected, 0, 0, 0, 0, 0, window ) 

window - window number 
#WindowSelected - message: window has been selected 
window - duplicate of 1st argument sent by GraphicsDesigner 

WindowSelected is sent to a window by GraphicsDesigner when the window state changes from not selected to selected, whether the change is caused by the user or the program. The selected window is the window with keyboard focus, which means that keyboard messages are sent to that window.

WindowSetDisplay  ( window, #WindowSetDisplay, 0, 0, 0, 0, 0, @display$ ) 

window - window number 
#WindowSetDisplay - message: set window display 
display$ - display name (empty string = default display)

WindowSetKeyboardFocusGrid  ( window, #WindowSetKeyboardFocusGrid, focusGrid, 0, 0, 0, 0, 0 ) 

window - window number 
#WindowSetKeyboardFocusGrid - message: set window keyboard focus grid 
focusGrid - keyboard focus grid for window

WindowSetTitle  ( window, #WindowSetTitle, 0, 0, 0, 0, 0, @title$ ) 

Send WindowSetTitle to a window to set its title string. 

The first argument must be a window number, not a grid number. SetWindowTitle is a grid message that accomplishes the same thing but takes a grid number (of any grid in the window). 

XuiSendMessage ( window, #WindowSetTitle, 0, 0, 0, 0, 0, @title$ ) 

window - window number 
#WindowSetTitle - message: set window title string 
title$ - title string

WindowShow  ( window, #WindowShow, 0, 0, 0, 0, 0, 0 ) 

Send WindowShow to a window to display the window without selecting it. If the window cannot be displayed without selecting it, it is displayed and selected. 

XuiSendMessage ( window, #WindowShow, 0, 0, 0, 0, 0, 0 ) 

window - window number 
#WindowShow - message: show window ( display without selecting )